-
Notifications
You must be signed in to change notification settings - Fork 13
Move to ES bridge API #336
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
src/main/java/co/elastic/logstash/filters/elasticintegration/EventProcessor.java
Show resolved
Hide resolved
src/main/java/co/elastic/logstash/filters/elasticintegration/EventProcessorBuilder.java
Show resolved
Hide resolved
src/main/java/co/elastic/logstash/filters/elasticintegration/IngestDuplexMarshaller.java
Outdated
Show resolved
Hide resolved
return new GeoIpProcessor.Factory("geoip", this.ipDatabaseProvider) | ||
.create(processorFactories, tag, description, config, projectId); | ||
Map<String, Object> config) throws Exception { | ||
return ProcessorBridge.wrap(new GeoIpProcessor.Factory("geoip", this.ipDatabaseProvider) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We will move rg.elasticsearch.ingest.geoip.GeoIpProcessor
usage separately with GeoIP task.
src/main/java/co/elastic/logstash/filters/elasticintegration/ingest/PipelineProcessor.java
Outdated
Show resolved
Hide resolved
src/main/java/co/elastic/logstash/filters/elasticintegration/ingest/RedactPlugin.java
Outdated
Show resolved
Hide resolved
This pull request does not have a backport label. Could you fix it @mashhurs? 🙏
|
0707b1b
to
bc9af21
Compare
src/main/java/co/elastic/logstash/filters/elasticintegration/PipelineConfigurationFactory.java
Outdated
Show resolved
Hide resolved
src/main/java/co/elastic/logstash/filters/elasticintegration/IngestDuplexMarshaller.java
Show resolved
Hide resolved
18333c6
to
5a96c8c
Compare
9820699
to
9bdad09
Compare
…s. Removes required upwrap interface since upstream moved to default method. Utilizes metadata version field since upstream made it accessible.
09c332c
to
9b0b557
Compare
fa3468c
to
53ded41
Compare
@@ -1,2 +1,3 @@ | |||
LOGSTASH_PATH=../../logstash | |||
ELASTICSEARCH_TREEISH=main | |||
ELASTICSEARCH_REPO=mashhurs/elasticsearch | |||
ELASTICSEARCH_TREEISH=logstash-bridge-geoip-interfaces |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
FYI: this will be removed once upstream PR is merged.
|
||
import org.elasticsearch.ingest.geoip.IpDatabase; | ||
|
||
public interface ValidatableIpDatabase extends IpDatabase { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No direct usage.
|
||
import java.util.Map; | ||
|
||
public class RedactPlugin extends Plugin implements IngestPlugin { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
moved to the upstream bridge.
src/main/java/co/elastic/logstash/filters/elasticintegration/util/PluginProjectResolver.java
Show resolved
Hide resolved
…s to logstash-bridge.
- `new ${BRIDGE}(...)` -> `${BRIDGE}.create(...)`: use bridge-provided factory methods - `${INTERNAL}Bridge.${NESTED}` -> `${INTERNAL}${NESTED}Bridge`: extract nested bridges to top-level - `${BRIDGE}.AbstractExternal` -> `AbstractExternal${BRIDGE}`: extract nested "AbstractExternal" base implementations to top-level
💚 Build Succeeded
History
|
Description
This PR highlights the initial changes required to move to the Bridge Stable API. However, this doesn't mean these changes will be enough for the plugin to be a in normal working state. Rather, this changes highlight how does current bridge Spable API state align with plugin requirements. Based on the discussions on these changes, we may need to adjust the plan (sub-tasks).
Next steps
elastic_integration
plugin usage to ES logstash-bridge. elasticsearch#131486PLEASE IGNORE:
gradle.build
changes which are already counted in [Move to ES Bridge] Buildlogstash-bridge
and include in the plugin #330, this is a requirement to call Bridge Stable API interfaces.